@use '../../../scss/constants' as *;

:host {
  display: flex;
  flex: 1 1 0;
  
  .cne-login-content {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    padding: 0 16px;
    background-image: url('/assets/login-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;

    mat-card {
      width: 550px;
      max-height: 100vh;
      padding: 0 16px;
      overflow-y: auto;
    }

    .cne-login-header {
      margin-bottom: 24px;

      .cne-logo-icon {
        height: 48px;
        margin-right: 16px;
      }

      h1 {
        font-size: 24px;
        color: #333;
        font-weight: 500;
      }
    }

    .cne-login-form {
      color: #666;
    }

    .oauth-container {
      margin-top: 32px;
      margin-bottom: 24px;
      color: #666;
      font-size: 14px;

      a.social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 8px;

        mat-icon {
          width: 24px;
          height: 24px;
          transition: color 0.3s;
          &:hover { 
            color: var(--cne-primary-color); }
            cursor: pointer;
        }
      }
    }

    .error-message {
      background-color: #fee;
      border: 1px solid #fcc;
      color: #c33;
    }
  }
}